|
In computer science, all-pairs testing or pairwise testing is a combinatorial method of software testing that, for ''each pair'' of input parameters to a system (typically, a software algorithm), tests all possible discrete combinations of those parameters. Using carefully chosen test vectors, this can be done much faster than an exhaustive search of all combinations of all parameters, by "parallelizing" the tests of parameter pairs. == Rationale == The most common bugs in a program are generally triggered by either a single input parameter or an interactions between pairs of parameters. Bugs involving interactions between three or more parameters are both progressively less common and also progressively more expensive to find---such testing has as its limit the testing of all possible inputs. Thus, a combinatorial technique for picking test cases like all-pairs testing is a useful cost-benefit compromise that enables a significant reduction in the number of test cases without drastically compromising functional coverage. More rigorously, assume that the test function has parameters given in a set . The range of the parameters are given by . Let's assume that . We note that the all possible conditions that can be used is an exponentiation, while imagining that the code deals with the conditions taking only two pair at a time, might reduce the number of conditions. To demonstrate, suppose there are X,Y,Z parameters. We can use a predicate of the form of order 3, which takes all 3 as input, or rather three different order 2 predicates of the form . can be written in an equivalent form of where comma denotes any combination. If the code is written as conditions taking "pairs" of parameters: then,the set of choices of ranges can be a multiset, because there can be multiple parameters having same number of choices. is one of the maximum of the multiset . The number of pair-wise test cases on this test function would be:- Plainly that would mean, if the and then the number of tests is typically O(''nm''), where ''n'' and ''m'' are the number of possibilities for each of the two parameters with the most choices, and it can be quite a lot less than the exhaustive 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「All-pairs testing」の詳細全文を読む スポンサード リンク
|